package com.engine4cloud.tdf.supervision.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.engine4cloud.tdf.common.core.constant.enums.SignTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.engine4cloud.tdf.common.core.util.TenantTable;
import java.time.LocalDateTime;

/**
 * 矫正对象现场签到
 *
 * @author wenjie
 * @date 2024-07-24 17:23:37
 */
@Data
@TenantTable
@TableName("rcgl_occasion_sign")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "矫正对象现场签到")
public class RcglOccasionSignEntity extends Model<RcglOccasionSignEntity> {

	/**
	* 主键
	*/
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description="主键")
    private Long id;

	/**
	* 矫正对象编号
	*/
    @Schema(description="矫正对象编号")
    private String rybh;

	/**
	* 设备id
	*/
    @Schema(description="设备id")
    private String deviceId;

	/**
	* 签到类型
	*/
    @Schema(description="签到类型")
    private SignTypeEnum signType;

	/**
	* 签到图片存放路径
	*/
    @Schema(description="签到图片存放路径")
    private String signPhotoUrl;

	/**
	* 签到地址
	*/
    @Schema(description="签到地址")
    private String signAddress;

	/**
	* 签到时间
	*/
    @Schema(description="签到时间")
    private LocalDateTime signTime;

	/**
	* 创建人
	*/
	@TableField(fill = FieldFill.INSERT)
    @Schema(description="创建人")
    private String createBy;

	/**
	* 创建时间
	*/
	@TableField(fill = FieldFill.INSERT)
    @Schema(description="创建时间")
    private LocalDateTime createTime;

	/**
	* 更新人
	*/
	@TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description="更新人")
    private String updateBy;

	/**
	* 更新时间
	*/
	@TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description="更新时间")
    private LocalDateTime updateTime;

	/**
	* 是否删除
	*/
    @TableLogic
	@TableField(fill = FieldFill.INSERT)
    @Schema(description="是否删除")
    private String delFlag;

	/**
	* 租户id
	*/
    @Schema(description="租户id")
    private Long tenantId;
}